import { Entity, Column, Unique, Index } from 'typeorm'
import { BaseEntity } from '../global'

@Entity('sms_record')
export class SmsRecord extends BaseEntity {
    @Column({ length: 16, comment: '手机号' })
    phone: string

    @Column({ length: 16, comment: '服务商' })
    provider: string

    @Column({ length: 32, comment: '短信签名' })
    sgin: string

    @Column({ length: 32, comment: '短信模板' })
    template: string

    @Column({ length: 256, comment: '短信内容' })
    content: string

    @Column({ length: 64, comment: '服务商发送回执ID' })
    bizid: string

    @Column({ length: 64, default: '', comment: '请求ID' })
    requestid: string
}
